#ifndef MYTHREAD_H
#define MYTHREAD_H

#include <QThread>
#include <QTcpSocket>
class MyThread : public QThread
{
    Q_OBJECT
public:
    explicit MyThread(int ID,QObject *parent = 0);
    void run();
signals:
    void sig_error(QTcpSocket::SocketError socketerror);
public slots:
    void slot_readReady();
    void slot_disconnect();
    void slot_connect();
public:
    QTcpSocket* socket;
    int SocketDescriptor;
    
};

#endif // MYTHREAD_H
